package com.hibase.core.oss.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * @ClassName: YmlConfig
 * @Description: OSSconfig
 * @author: TimBrian
 * @date: Jul 27, 2021 1:09:11 PM
 */
@Component
@ConfigurationProperties(prefix = "hibase.aliyun-oss")
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class OssProperties {

	private String endpoint;
	private String accessKeyId;
	private String accessKeySecret;
	
	/**
	 * 临时存储空间内的文件对象，在无修改7天以后失效
	 */
	private String tempBucket;
	/**
	 * 正式存储空间，永久有效
	 */
	private String formalBucket;
	/**
	 * 删除空间，存放删除状态下的文件，在无修改30天以后失效
	 */
	private String delBucket;
	
}
